import request from '@/utils/request'

// 查询数据一列表
export function listDataOne(query) {
  return request({
    url: '/manage/DataOne/list',
    method: 'get',
    params: query
  })
}

// 查询数据一详细
export function getDataOne(XZQYDM) {
  return request({
    url: '/manage/DataOne/' + XZQYDM,
    method: 'put'
  })
}

// 新增数据一
export function addDataOne(data) {
  return request({
    url: '/manage/DataOne',
    method: 'post',
    data: data
  })
}

// 修改数据一
export function updateDataOne(data) {
  return request({
    url: '/manage/DataOne',
    method: 'put',
    data: data
  })
}

// 删除数据一
export function delDataOne(XZQYDM) {
  return request({
    url: '/manage/DataOne/' + XZQYDM,
    method: 'delete'
  })
}
